Optimal. Leaf size=163 \[ \frac{i n \text{PolyLog}\left (2,1-\frac{2 \sqrt{a}}{\sqrt{a}+i \sqrt{b} x}\right )}{\sqrt{a} \sqrt{b}}+\frac{\tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right ) \log \left (c \left (a+b x^2\right )^n\right )}{\sqrt{a} \sqrt{b}}+\frac{i n \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )^2}{\sqrt{a} \sqrt{b}}+\frac{2 n \log \left (\frac{2 \sqrt{a}}{\sqrt{a}+i \sqrt{b} x}\right ) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{\sqrt{a} \sqrt{b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.145471, antiderivative size = 163, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 7, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.318, Rules used = {205, 2470, 12, 4920, 4854, 2402, 2315} \[ \frac{i n \text{PolyLog}\left (2,1-\frac{2 \sqrt{a}}{\sqrt{a}+i \sqrt{b} x}\right )}{\sqrt{a} \sqrt{b}}+\frac{\tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right ) \log \left (c \left (a+b x^2\right )^n\right )}{\sqrt{a} \sqrt{b}}+\frac{i n \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )^2}{\sqrt{a} \sqrt{b}}+\frac{2 n \log \left (\frac{2 \sqrt{a}}{\sqrt{a}+i \sqrt{b} x}\right ) \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{\sqrt{a} \sqrt{b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 2470
Rule 12
Rule 4920
Rule 4854
Rule 2402
Rule 2315
Rubi steps
\begin{align*} \int \frac{\log \left (c \left (a+b x^2\right )^n\right )}{a+b x^2} \, dx &=\frac{\tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right ) \log \left (c \left (a+b x^2\right )^n\right )}{\sqrt{a} \sqrt{b}}-(2 b n) \int \frac{x \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{\sqrt{a} \sqrt{b} \left (a+b x^2\right )} \, dx\\ &=\frac{\tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right ) \log \left (c \left (a+b x^2\right )^n\right )}{\sqrt{a} \sqrt{b}}-\frac{\left (2 \sqrt{b} n\right ) \int \frac{x \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{a+b x^2} \, dx}{\sqrt{a}}\\ &=\frac{i n \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )^2}{\sqrt{a} \sqrt{b}}+\frac{\tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right ) \log \left (c \left (a+b x^2\right )^n\right )}{\sqrt{a} \sqrt{b}}+\frac{(2 n) \int \frac{\tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )}{i-\frac{\sqrt{b} x}{\sqrt{a}}} \, dx}{a}\\ &=\frac{i n \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )^2}{\sqrt{a} \sqrt{b}}+\frac{2 n \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right ) \log \left (\frac{2 \sqrt{a}}{\sqrt{a}+i \sqrt{b} x}\right )}{\sqrt{a} \sqrt{b}}+\frac{\tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right ) \log \left (c \left (a+b x^2\right )^n\right )}{\sqrt{a} \sqrt{b}}-\frac{(2 n) \int \frac{\log \left (\frac{2}{1+\frac{i \sqrt{b} x}{\sqrt{a}}}\right )}{1+\frac{b x^2}{a}} \, dx}{a}\\ &=\frac{i n \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )^2}{\sqrt{a} \sqrt{b}}+\frac{2 n \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right ) \log \left (\frac{2 \sqrt{a}}{\sqrt{a}+i \sqrt{b} x}\right )}{\sqrt{a} \sqrt{b}}+\frac{\tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right ) \log \left (c \left (a+b x^2\right )^n\right )}{\sqrt{a} \sqrt{b}}+\frac{(2 i n) \operatorname{Subst}\left (\int \frac{\log (2 x)}{1-2 x} \, dx,x,\frac{1}{1+\frac{i \sqrt{b} x}{\sqrt{a}}}\right )}{\sqrt{a} \sqrt{b}}\\ &=\frac{i n \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )^2}{\sqrt{a} \sqrt{b}}+\frac{2 n \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right ) \log \left (\frac{2 \sqrt{a}}{\sqrt{a}+i \sqrt{b} x}\right )}{\sqrt{a} \sqrt{b}}+\frac{\tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right ) \log \left (c \left (a+b x^2\right )^n\right )}{\sqrt{a} \sqrt{b}}+\frac{i n \text{Li}_2\left (1-\frac{2 \sqrt{a}}{\sqrt{a}+i \sqrt{b} x}\right )}{\sqrt{a} \sqrt{b}}\\ \end{align*}
Mathematica [A] time = 0.0423675, size = 128, normalized size = 0.79 \[ \frac{i n \text{PolyLog}\left (2,\frac{\sqrt{b} x+i \sqrt{a}}{\sqrt{b} x-i \sqrt{a}}\right )+\tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right ) \left (\log \left (c \left (a+b x^2\right )^n\right )+2 n \log \left (\frac{2 i}{-\frac{\sqrt{b} x}{\sqrt{a}}+i}\right )+i n \tan ^{-1}\left (\frac{\sqrt{b} x}{\sqrt{a}}\right )\right )}{\sqrt{a} \sqrt{b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 1.373, size = 0, normalized size = 0. \begin{align*} \int{\frac{\ln \left ( c \left ( b{x}^{2}+a \right ) ^{n} \right ) }{b{x}^{2}+a}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\log \left ({\left (b x^{2} + a\right )}^{n} c\right )}{b x^{2} + a}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\log{\left (c \left (a + b x^{2}\right )^{n} \right )}}{a + b x^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\log \left ({\left (b x^{2} + a\right )}^{n} c\right )}{b x^{2} + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]